﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerCharacter : MonoBehaviour
{
    //玩家生命值
    private int _health = 5;

	// Use this for initialization
	void Start ()
	{
	    _health = 5;
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    //造成伤害
    public void Hurt(int damage)
    {
        _health -= damage;
        Debug.Log("Health:"+_health);
    }
}
